package com.linkhub.oms.admin.modules.pickuporder.domain.param;

import com.linkhub.oms.admin.modules.user.domain.param.BasePageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: PickUpOrderQueryParam
 * @Author: echo
 * @Date: 2024/5/2 09:42
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "PickUpOrderQueryParam")
public class PickUpOrderQueryParam extends BasePageParam implements Serializable {

    @ApiModelProperty(value = "提货状态：null:全部；1-待审核；2-生产中；3-运输中；4-入库中；5-已入库（已上架）；6-已取消;7-已完成")
    @Range(min = 1, max = 7, message = "{validation.pickup.order.state.range}")
    private Integer state;

    @ApiModelProperty(value = "商家用户Ids，只有员工页面才传该参数")
    private List<String> merchantUserIds;

    // ================= 非前端传值 =============
    @ApiModelProperty(value = "是否客户角色", hidden = true)
    private boolean customerRole;
}
